//-----------------------------------------------------------------------
// <copyright file="a_products_specService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_products_specService
    {
        #region a_products_spec

        public static void Createa_products_spec(a_products_spec a_products_spec)
        {            
            try
            {
                a_products_specDAO a_products_specDAO = new a_products_specDAO();
                a_products_specDAO.Createa_products_spec(a_products_spec);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_products_spec(a_products_spec a_products_spec)
        {            
            try
            {
                a_products_specDAO a_products_specDAO = new a_products_specDAO();
                a_products_specDAO.Updatea_products_spec(a_products_spec);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_products_spec(int specsheetid)
        {            
            try
            {
                a_products_specDAO a_products_specDAO = new a_products_specDAO();
                a_products_specDAO.Deletea_products_spec(specsheetid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_products_spec Geta_products_spec(int specsheetid)
        {            
            try
            {
                a_products_specDAO a_products_specDAO = new a_products_specDAO();
                return a_products_specDAO.Geta_products_spec(specsheetid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_products_specCollection Geta_products_specList(a_products_specColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_products_specDAO a_products_specDAO = new a_products_specDAO();
                return a_products_specDAO.Geta_products_specList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_products_specCollection Geta_products_specList(a_products_specColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_products_specDAO a_products_specDAO = new a_products_specDAO();
                return a_products_specDAO.Geta_products_specList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}